#ifndef _MONSTER_H
#define _MONSTER_H
#include <mystring.h>
#include <stdlib.h>
#include <DynamicArray.h>
#include "Scene.h"
struct Monster
{
    int HP;    
    int attack;
    int x;
    int y;
    mystr symbol;
    mystr name;
    int exp;
    int gold;
    int def;
};

typedef struct Monster monster;

monster* CreatMonster(const char* name,int HP,int attack,int def,const char* symbol,int exp,int gold);

void FreeMonster(void* ptr);

void PrintMonster(void* ptr);

void SetMonsters(DArray* ms);

void SetMonstersPosition(DArray* ms,char* (*map)[MAPSIZE]);

void ResetMonsterSPosition(DArray* ms,char* (*map)[MAPSIZE]);

monster* GetMonsterByPosition(DArray *ms,int x,int y);

mystr MonsterToString(DArray* ms);

void StringToMonster(mystrlist* mst,DArray* ms);

#endif